﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddandEditProduct.aspx.cs" Inherits="project_web2.AdminTool.AddandEditProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 181px;
        }
        .style3
        {
            width: 309px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="plAdminToolMenu" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td class="style2">
                <asp:HiddenField ID="hideId" runat="server" />
            </td>
            <td class="style3">
                <asp:Label ID="lbNote" runat="server" Font-Size="X-Large" Text="Thêm sản phẩm"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label1" runat="server" Text="Tên sản phẩm"></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtName" runat="server" Width="309px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label2" runat="server" Text="Danh mục sản phẩm"></asp:Label>
            </td>
            <td class="style3">
                <asp:DropDownList ID="lbCategory" runat="server" Height="21px" Width="307px">
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label4" runat="server" Text="Mô tả SP"></asp:Label>
                <asp:HiddenField ID="hideImage" runat="server" />
            </td>
            <td class="style3">
                <asp:TextBox ID="txtDescription" runat="server" Height="93px" 
                    TextMode="MultiLine" Width="309px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label5" runat="server" Text="Số lượng"></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtQuantity" runat="server" Width="309px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label6" runat="server" Text="Đơn vị tính"></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtUnit" runat="server" Width="309px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label7" runat="server" Text="Giá"></asp:Label>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtPrice" runat="server" Width="309px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label8" runat="server" Text="Trạng thái"></asp:Label>
            </td>
            <td class="style3">
                <asp:CheckBox ID="chbStatus" runat="server" Text="Trạng thái" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label9" runat="server" Text="Hình ảnh"></asp:Label>
            </td>
            <td class="style3">
                <asp:FileUpload ID="fuImage" runat="server" Width="306px" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:HiddenField ID="hideNew" runat="server" />
            </td>
            <td class="style3">
                <table class="style1">
                    <tr>
                        <td>
                            <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" Text="Lưu" />
                        </td>
                        <td>
                            <asp:Button ID="btnExit" runat="server" onclick="btnExit_Click" Text="Trở về" />
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
